package c.h.a.b0;

import android.app.Activity;
import android.app.ProgressDialog;
import android.view.View;
import android.widget.Toast;
import b.b.c.f;
import c.h.b.a.a.b;
import c.h.b.a.a.c;

/* compiled from: CloseAdDonateDialog */
public class l {
    public Activity a;

    /* compiled from: CloseAdDonateDialog */
    public class a extends b {
        public final /* synthetic */ ProgressDialog a;

        public a(ProgressDialog progressDialog) {
            this.a = progressDialog;
        }

        public void b() {
            c.f.a.a.a.a.z("ad_donaate");
        }

        public void d(String str) {
            this.a.dismiss();
            c.f.a.a.a.a.x("ad_donaate", str);
            Toast.makeText(l.this.a, 2131690051, 0).show();
        }

        public void f(c.h.b.a.b.b bVar) {
            this.a.dismiss();
            bVar.a(l.this.a, new k(this));
        }
    }

    public l(Activity activity) {
        this.a = activity;
    }

    public final void a() {
        ProgressDialog progressDialog = new ProgressDialog(this.a);
        progressDialog.setCancelable(false);
        progressDialog.show();
        c.f.a.a.a.a.y("ad_donaate");
        c.a(this.a, c.h.a.u.a.e, new a(progressDialog));
    }

    public void b() {
        b.b.c.f.a aVar = new b.b.c.f.a(this.a);
        aVar.e(2131689806);
        aVar.f(2131492939);
        aVar.a.m = false;
        f g = aVar.g();
        View findViewById = g.findViewById(2131296456);
        if (findViewById != null) {
            findViewById.setOnClickListener(new d(g));
        }
        findViewById = g.findViewById(2131296518);
        if (findViewById != null) {
            findViewById.setOnClickListener(new c(this, g));
        }
        findViewById = g.findViewById(2131296896);
        if (findViewById != null) {
            findViewById.setOnClickListener(new e(this, g));
        }
    }
}
